var app = getApp();
var ajax = require('../../utils/ajax.js');
var util = require('../../utils/util.js');
var wxUtil = require('../../utils/wxUtil.js');
var shopInfo = require('../../components/shopInfo/index.js');
var common = require('../../utils/common.js');
Page({
    data: {
        dataLoaded: false
    },
    /**
     * 页面加载
     */
    onLoad: function(options) {

        this.setData({
            dataLoaded: true
        })

    },
    _tx(e) {
        var _self = this;
        var formId = e.detail.formId;
        ajax.P('/openapi/CUser/withDraw', e.detail.value, function(d) {

            console.log(d);

            if (d.code == 0) {
                util.alert('提现审核提交成功', function() {
                    wx.navigateBack();
                });
            } else {
                if (d.msg) {
                    util.alert(d.msg);
                }
            }

        });
        common.submitForm(formId);
    }
})